﻿function AzureTableFilterFuncExpression(funcName, arg) {

    this.funcName = funcName;

    this.arg = arg;

    this.type = 'func';

    this.match = function (rec) {
        switch (this.funcName) {
            case 'not':
                return !arg.match(rec);
            default:
                throw new Error('unknown function name');
        }
    };

}